package com.situ.javase.day7;

public class Add extends AbstractCal{
	
	public Add() {
		
	}
	
	public Add(int num1, int num2) {
		// super() // new Cal();
		//this.num1 = num1;
		//this.num2 = num2;
		
		super(num1, num2);// new Cal(num1, num2);
	}

	@Override
	public int getResult() {
		// return super.getResult();
		return num1 + num2;
	}
}
